

-- D:\GOA\reslibrary\templete\res\item\item.pad.lua.xsl
gr_module("gm_xinbanchunzhongyun")

cgfcompanyitemItem = inherit(GmCtrl.ControlBase):name("cgfcompanyitemItem")

cgfcompanyitemItem.init = function (self,parent,aid)

	local top = self
	local win = parent.hostWindow
	local fid = aid or "cgfcompanyitemItem"
	GmCtrl.ControlBase.init(self,parent,fid,true)

	
	self.id = self:get_child("id")
	
	self.name = self:get_child("name")
	
	self.info = self:get_child("info")
	
	self.tel = self:get_child("tel")
	
	self.fax = self:get_child("fax")
	
	self.email = self:get_child("email")
	
	self.address = self:get_child("address")
	
	self.account = self:get_child("account")
	
	self.logo = self:get_child("logo")
	
	self.zip_code = self:get_child("zip_code")
	
	self.msn = self:get_child("msn")
	
	self.qq = self:get_child("qq")
	
	self.hotline = self:get_child("hotline")
	
	self.phone = self:get_child("phone")
	
	self.linkman = self:get_child("linkman")
	
	self.theme_id = self:get_child("theme_id")
	
	self.province = self:get_child("province")
	
	self.lot = self:get_child("lot")
	
	self.background = self:get_child("background")
	
	self.web = self:get_child("web")
	
	self.coefficient = self:get_child("coefficient")
	
	self.kshow_name = self:get_child("kshow_name")
	
	self.kshow_password = self:get_child("kshow_password")
	
	self.kshow_key = self:get_child("kshow_key")
	
	
	self:set_click(function(self)
		local ttop = top
		top.hostWindow:addNavFrame('__modal__info',nil,function(frame)
			local tttop = ttop
			print('########## $$$$$$$ 0')
			if frame and frame.set_data then
				frame:set_data(tttop.data)
			end
		end)
	end)
	
end


cgfcompanyitemItem.set_data = function(self,data)
	self.data = data
	for a,b in pairs(data) do
		if data[a] and self[a] and self[a].set_inner_text and self[a].is_init and self[a]:is_init() then
			self[a]:set_inner_text(tostring(data[a]))
		end
	end
end


	